package com.qys.livesMall.shop.service;

import com.qys.livesMall.shop.modal.entity.ShopRechargeGradient;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.shop.modal.vo.ShopRechargeGradientVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 店铺充值返现梯度 服务类
 * </p>
 *
 * @author
 * @since 2023-10-24
 */
public interface ShopRechargeGradientService extends IService<ShopRechargeGradient> {

    void addOrUp(ShopRechargeGradient gradient);

    void upStatus(ShopRechargeGradient gradient);

    List<ShopRechargeGradientVO> getAll();

    /**
     * 根据金额返回符合的梯度
     * @param amount
     * @return
     */
    ShopRechargeGradient getByAmount(BigDecimal amount);
}
